function connect() {
    let myAjax = new XMLHttpRequest() || new ActiveXObject('Microsoft.XMLHTTP')
    myAjax.open('get', 'http://localhost:3000/play/category', true)
    myAjax.send()
    myAjax.onreadystatechange = function() {
        if(myAjax.readyState == 4 && myAjax.status == 200) {
            let res = JSON.parse(myAjax.responseText)
            console.log(res);
            // loadPage(res)
        }else{

        }
    }
}
connect()